cmake_minimum_required(VERSION 3.5)
project(yolo_detect_message)

# Default to C99
if(NOT CMAKE_C_STANDARD)
  set(CMAKE_C_STANDARD 99)
endif()

# Default to C++17
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 17)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(geographic_msgs REQUIRED)

find_package(rosidl_typesupport_fastrtps_cpp REQUIRED)

find_package(sensor_msgs REQUIRED)

# 如果需要Python支持，请使用以下内容:
# find_package(Python3 REQUIRED COMPONENTS Interpreter Development)

if(BUILD_TESTING)
  find_package(ament_lint_auto REQUIRED)
  ament_lint_auto_find_test_dependencies()
endif()

# Generate messages
rosidl_generate_interfaces(${PROJECT_NAME}
  "msg/BoundingBox.msg"
  "msg/BoundingBoxes.msg"
  "msg/DetectBox.msg"
  "msg/DetectBoxs.msg"
  "msg/ObjectCount.msg"
  "msg/TrakerBox.msg"
  "msg/TrakerBoxs.msg"
  "msg/MoveInterface.msg"
  "msg/Objectlocation.msg"
  "msg/CallServerStatus.msg"
  "msg/Pixlelocation.msg"
  "srv/Service.srv"
  "msg/LocationTrakerBox.msg"
  "msg/LocationTrakerBoxs.msg"
  "msg/LocationDetectBox.msg"
  "msg/LocationDetectBoxs.msg"
  "msg/Geolocation.msg"
  DEPENDENCIES std_msgs geometry_msgs sensor_msgs
)


ament_package()
